<div class="box box-solid no-margin box-show">
    <div class="box-body">
        <h4>产品列表</h4>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th>SKU</th>
                    <th width="20%">产品名称</th>
                    <th>申请发货数量</th>
                    <th>已备货数量</th>
                </tr>
                </thead>
                <tbody>
                @foreach($delivery->detail as $item)
                    <tr>
                        <td>{{ $item->sku->psku_code ?? '' }}</td>
                        <td>{{ $item->sku->psku_cn ?? '' }}</td>
                        <td>{{ $item->apply_num }}</td>
                        <td><span class="label label-{{ $item->apply_num > $item->ship_num ? 'danger' : 'info'}}">{{ $item->ship_num }}</span></td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>
